package com.mew.lobby.message.response;

import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.*;

/**
 * @Author King.Song
 * @Date 2020/12/4 0004
 **/
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class EnterRoomResponseMessage extends ZebraBaseMessage<EnterRoomResponseMessage> {

    private int gameId;
    private int roomId;
    private int gamePort; //游戏端口
    private String gameHost;//游戏IP

    @Override
    public void write(ByteBuf b) {

        writeInt(b, this.gameId);
        writeInt(b, this.roomId);
        writeInt(b, this.gamePort);
        writeString(b, this.gameHost);
    }

    @Override
    public EnterRoomResponseMessage read(ByteBuf b) {
        return null;
    }
}
